import request from '@/utils/request'

export function getCategoryQuery(data) {
  return request({
    url: '/goods/category/query',
    method: 'post',
    data,
  })
}

export function getCategoryAdd(data) {
  return request({
    url: '/goods/category/add',
    method: 'post',
    data,
  })
}

export function getCategoryEdit(data) {
  return request({
    url: '/goods/category/edit',
    method: 'post',
    data,
  })
}

export function getCategoryDel(data) {
  return request({
    url: '/goods/category/del',
    method: 'post',
    data,
  })
}

// 地区
export function getTree(params) {
  return request({
    url: '/system/place/query',
    method: 'get',
    params,
  })
}

export function getProvince(params) {
  return request({
    url: '/system/place/province',
    method: 'get',
    params,
  })
}

export function getProvinceTwo(params) {
  return request({
    url: '/system/place/city',
    method: 'get',
    params,
  })
}
